<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
  ul,li{
    list-style:none;
    padding:0;
    margin:0;
  }
 body{
   background-color: #f2f2f2;
   
 }
  a{
    text-decoration: none;
   
  }
  /* 内容样式 */
  ul>li{
    
    float:left;
    margin-left: 10px;
  }
  ul>li>a{
    display: inline-block;
    width:36px;
    height:36px;
    line-height: 36px;
    text-align: center;
    border-radius: 6px;
    background-color: #fff;
    color:#3951b3;
  }
  /* 并集选择器也可以 */
  ul>li>a:hover{
  background-color: blue;
  color:#fff;
  }
  ul>li.active>a{
    background-color: blue;
  color:#fff;
  }
  ul>li.next{
    width:80px;
  
  }
  ul>li>a.next{
    width:80px;
  }
  </style>
</head>
<body>
  <ul>
    <li class="item"><a href="#">1</a></li>
    <li class="item"><a href="#">2</a></li>
    <li class="item"><a href="#">3</a></li>
    <li class="item"><a href="#">4</a></li>
    <li class="item"><a href="#">5</a></li>
    <li class="item"><a href="#">6</a></li>
    <li class="item active"><a href="#">7</a></li>
    <li class="item"><a href="#">8</a></li>
    <li class="item"><a href="#">9</a></li>
    <li class="item"><a href="#">10</a></li>
    <!-- 字符实体 -->
    <li class="item "><a class="next" href="#">下一页 &gt;</a></li>
  </ul>

</body>
</html>